//一般资料
export let general_information1 = {
  title: "患者基本信息",
  id: 1,
  version: 1,
  multiple: false,
  fields: [
    {
      name: "field_1",
      label: "姓名",
      type: "text",
      required: true
    },
    {
      name: "field_21",
      label: "病案号",
      type: "number",
      required: true
    },
    {
      name: "field_3",
      label: "出生日期",
      type: "date",
      required: true
    },
    {
      name: "field_6",
      label: "联系电话",
      type: "number",
      required: true
    },
    {
      name: "field_7",
      label: "籍贯",
      type: "address"
    },
    {
      name: "field_8",
      label: "职业",
      type: "select",
      allowInput: true,
      options: [
        {
          label: "专业技术人员"
        },
        {
          label: "政府机关"
        },
        {
          label: "事业单位"
        },
        {
          label: "体力劳动者"
        }
      ]
    },
    {
      name: "field_9",
      label: "民族",
      type: "select",
      default: "汉",
      options: [
        {
          label: "汉"
        },
        {
          label: "其它"
        }
      ]
    },
    {
      name: "field_11",
      label: "性别",
      type: "select",
      options: [
        {
          label: "男"
        },
        {
          label: "女"
        }
      ]
    },
    {
      name: "field_12",
      label: "婚姻",
      type: "select",
      options: [
        {
          label: "已婚"
        },
        {
          label: "未婚"
        },
        {
          label: "离异"
        }
      ]
    }
  ]
};

export let general_information3 = {
  id: 2,

  title: "住院基本信息",
  version: 1,
  multiple: false,
  fields: [
    {
      name: "field_4",
      type: "date",
      label: "入院日期",
      required: true,
      validator: {
        formula: "$field_5#>$field_4#",
        fields: ["field_4"],
        message: "入院时间必须早于出院时间"
      }
    },
    {
      name: "field_13",
      label: "年龄",
      type: "number",
      editable: false,
      placeholder: "根据出生日期和入院时间自动计算",
      required: true,
      rely: {
        formula: "GETAGERANGE($field_3#,$field_4#)",
        fields: [{ name: "field_3", formId: 1, position: "client" }, "field_4"]
      }
    },
    {
      name: "field_5",
      type: "date",
      label: "出院日期",
      validator: {
        formula: "$field_5#>$field_4#",
        fields: ["field_4"],
        message: "出院时间必须晚于入院时间"
      },
      required: true
    },
    {
      name: "field_16",
      label: "ICU住院(d)",
      required: true,
      type: "number"
    },
    {
      name: "field_17",
      label: "呼吸机时间(h)",
      required: true,
      type: "number"
    },
    {
      name: "field_19",
      label: "术前EQ-5D",
      required: true,
      type: "number"
    },
    {
      name: "field_20",
      label: "术后EQ-5D",
      required: true,
      type: "number"
    },
    {
      name: "field_14",
      label: "住院天数",
      required: true,
      placeholder: "根据入院出院时间自动计算",
      editable: false,
      type: "number",
      rely: {
        formula: "COUNTDAYRANGE($field_4#,$field_5#)",
        fields: ["field_4", "field_5"]
      }
    },
    {
      name: "field_18",
      label: "住院费用(元)",
      required: true,
      type: "number",
      allowNegative: false
    },
    {
      name: "field_15",
      label: "术后住院天数",
      placeholder: "根据手术、出院时间自动计算",
      editable: false,
      required: true,
      type: "number"
    }
  ]
};

export let general_information2 = {
  id: 3,
  version: 1,
  multiple: false,
  fields: [
    {
      name: "field_1",
      label: "主诉",
      type: "textarea",
      required: true
    },
    {
      name: "field_2",
      label: "第一诊断",
      type: "text",
      required: true
    },
    {
      name: "field_3",
      label: "国内分型",
      editable: false,
      placeholder: "根据受累血管情况自动计算",
      type: "text",
      required: true,
      rely: {
        formula: `IF(
			{"condition":"('$field_16#'!='未查'&&'$field_16#'!='不受累'||'$field_17#'!='未查'&&'$field_17#'!='不受累'||'$field_18#'!='未查'&&'$field_18#'!='不受累'||'$field_19#'!='未查'&&'$field_19#'!='不受累')&&('$field_6#'!='未查'&&'$field_6#'!='不受累'||'$field_7#'!='未查'&&'$field_7#'!='不受累'||'$field_8#'!='未查'&&'$field_8#'!='不受累'||'$field_9#'!='未查'&&'$field_9#'!='不受累'||'$field_10#'!='未查'&&'$field_10#'!='不受累'||'$field_11#'!='未查'&&'$field_11#'!='不受累'||'$field_12#'!='未查'&&'$field_12#'!='不受累')","value":"广泛型"},			
			{"condition":"'$field_16#'!='未查'&&'$field_16#'!='不受累'||'$field_17#'!='未查'&&'$field_17#'!='不受累'||'$field_18#'!='未查'&&'$field_18#'!='不受累'||'$field_19#'!='未查'&&'$field_19#'!='不受累'","value":"胸-腹动脉型"},
			{"condition":"'$field_15#'!='未查'&&'$field_15#'!='不受累'||'$field_14#'!='未查'&&'$field_14#'!='不受累'||'$field_13#'!='未查'&&'$field_13#'!='不受累'","value":"肺动脉型"},
			{"condition":"'$field_6#'!='未查'&&'$field_6#'!='不受累'||'$field_7#'!='未查'&&'$field_7#'!='不受累'||'$field_8#'!='未查'&&'$field_8#'!='不受累'||'$field_9#'!='未查'&&'$field_9#'!='不受累'||'$field_10#'!='未查'&&'$field_10#'!='不受累'||'$field_11#'!='未查'&&'$field_11#'!='不受累'||'$field_12#'!='未查'&&'$field_12#'!='不受累'","value":"头臂型"}
			
		)`,
        fields: [
          "field_6",
          "field_7",
          "field_8",
          "field_9",
          "field_10",
          "field_11",
          "field_12",
          "field_13",
          "field_14",
          "field_15",
          "field_16",
          "field_17",
          "field_18",
          "field_19",
          "field_20",
          "field_21",
          "field_22",
          "field_23",
          "field_24"
        ]
      }
    },
    {
      name: "field_4",
      label: "影像分型",
      editable: false,
      placeholder: "根据受累血管情况自动计算",
      type: "text",
      required: true,
      rely: {
        formula: `IF(
			{"condition":"('$field_6#'!='不受累'&&'$field_6#'!='未查'||'$field_7#'!='不受累'&&'$field_7#'!='未查'||'$field_8#'!='不受累'&&'$field_8#'!='未查'||'$field_9#'!='不受累'&&'$field_9#'!='未查'||'$field_10#'!='不受累'&&'$field_10#'!='未查'||'$field_11#'!='不受累'&&'$field_11#'!='未查'||'$field_12#'!='不受累'&&'$field_12#'!='未查')&&('$field_13#'=='不受累'&&'$field_14#'=='不受累'&&'$field_15#'=='不受累'&&'$field_16#'=='不受累'&&'$field_17#'=='不受累'&&'$field_18#'=='不受累'&&'$field_19#'=='不受累'&&'$field_20#'=='不受累'&&'$field_21#'=='不受累'&&'$field_22#'=='不受累'&&'$field_23#'=='不受累'&&'$field_24#'=='不受累')","value":"type Ⅰ"},
			{"condition":"'$field_13#'=='不受累'&&'$field_14#'=='不受累'&&'$field_15#'=='不受累'&&'$field_16#'!='不受累'&&'$field_16#'!='未查'&&'$field_17#'!='不受累'&&'$field_17#'!='未查'&&'$field_18#'=='不受累'&&'$field_19#'=='不受累'&&'$field_20#'=='不受累'&&'$field_21#'=='不受累'&&'$field_22#'=='不受累'&&'$field_23#'=='不受累'&&'$field_24#'=='不受累'","value":"type Ⅱ a"},
			{"condition":"'$field_18#'!='未查'&&'$field_18#'!='不受累'&&'$field_19#'=='不受累'","value":"type Ⅱ b"},
			{"condition":"'$field_6#'=='不受累'&&'$field_7#'=='不受累'&&'$field_8#'=='不受累'&&'$field_9#'=='不受累'&&'$field_10#'=='不受累'&&'$field_11#'=='不受累'&&'$field_12#'=='不受累'&&'$field_16#'=='不受累'&&'$field_17#'=='不受累'&&'$field_18#'!='未查'&&'$field_18#'!='不受累'&&'$field_19#'!='未查'&&'$field_19#'!='不受累'","value":"type Ⅲ"},
			{"condition":"'$field_6#'=='不受累'&&'$field_7#'=='不受累'&&'$field_8#'=='不受累'&&'$field_9#'=='不受累'&&'$field_10#'=='不受累'&&'$field_11#'=='不受累'&&'$field_12#'=='不受累'&&'$field_13#'=='不受累'&&'$field_14#'=='不受累'&&'$field_15#'=='不受累'&&'$field_16#'=='不受累'&&'$field_17#'=='不受累'&&'$field_18#'=='不受累'&&'$field_19#'!='不受累'&&'$field_19#'!='未查'&&'$field_20#'=='不受累'&&'$field_21#'=='不受累'&&'$field_22#'=='不受累'&&'$field_23#'=='不受累'&&'$field_24#'=='不受累'","value":"type Ⅳ"},
			{"condition":"true","value":"type Ⅴ"}
		)`,
        fields: [
          "field_6",
          "field_7",
          "field_8",
          "field_9",
          "field_10",
          "field_11",
          "field_12",
          "field_13",
          "field_14",
          "field_15",
          "field_16",
          "field_17",
          "field_18",
          "field_19",
          "field_20",
          "field_21",
          "field_22",
          "field_23",
          "field_24"
        ]
      }
    },
    {
      name: "field_5",
      label: "受累血管数",
      required: true,
      editable: false,
      placeholder: "根据受累血管情况自动计算",
      type: "number",
      rely: {
        //受累血管，不包括主动脉瓣
        formula: `COUNTBYCONDITION(
			'$field_6#'!='不受累'&&'$field_6#'!='未查',
			'$field_7#'!='不受累'&&'$field_7#'!='未查',
			'$field_8#'!='不受累'&&'$field_8#'!='未查',
			'$field_9#'!='不受累'&&'$field_9#'!='未查',
			'$field_10#'!='不受累'&&'$field_10#'!='未查',
			'$field_11#'!='不受累'&&'$field_11#'!='未查',
			'$field_12#'!='不受累'&&'$field_12#'!='未查',
			'$field_14#'!='不受累'&&'$field_14#'!='未查',
			'$field_15#'!='不受累'&&'$field_15#'!='未查',
			'$field_16#'!='不受累'&&'$field_16#'!='未查',
			'$field_17#'!='不受累'&&'$field_17#'!='未查',
			'$field_18#'!='不受累'&&'$field_18#'!='未查',
			'$field_19#'!='不受累'&&'$field_19#'!='未查',
			'$field_20#'!='不受累'&&'$field_20#'!='未查',
			'$field_21#'!='不受累'&&'$field_21#'!='未查',
			'$field_22#'!='不受累'&&'$field_22#'!='未查',
			'$field_23#'!='不受累'&&'$field_23#'!='未查',
			'$field_24#'!='不受累'&&'$field_24#'!='未查'
		)`,
        fields: [
          "field_6",
          "field_7",
          "field_8",
          "field_9",
          "field_10",
          "field_11",
          "field_12",
          "field_14",
          "field_15",
          "field_16",
          "field_17",
          "field_18",
          "field_19",
          "field_20",
          "field_21",
          "field_22",
          "field_23",
          "field_24"
        ]
      }
    },
    {
      name: "field_6",
      label: "左颈",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_7",
      label: "右颈",
      required: true,
      type: "selectWithInput",
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_8",
      label: "左椎",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_9",
      label: "右椎",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_10",
      label: "左锁骨下",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_11",
      label: "右锁骨下",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_12",
      label: "头臂干",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_14",
      label: "冠脉",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_15",
      label: "肺动脉",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_16",
      label: "升主",
      required: true,
      type: "selectWithInput",
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_17",
      label: "主动脉弓",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_18",
      label: "胸降主",
      required: true,
      type: "selectWithInput",
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_19",
      label: "腹降主",
      required: true,
      type: "selectWithInput",
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_20",
      label: "腹腔干",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_21",
      label: "肠系膜上",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_22",
      label: "肠系膜下",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_23",
      label: "左肾",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_24",
      label: "右肾",
      type: "selectWithInput",
      required: true,
      default: "不受累",
      showExtraInput: "其它病变",
      options: [
        {
          label: "不受累"
        },
        {
          label: "轻微受累（<30%）"
        },
        {
          label: "轻度狭窄（30%-50%）"
        },
        {
          label: "中度狭窄（50%-70%）"
        },
        {
          label: "重度狭窄（70%-99%）"
        },
        {
          label: "闭塞"
        },
        {
          label: "扩张病变"
        },
        {
          label: "其它病变"
        },
        {
          label: "未查"
        }
      ]
    },
    {
      name: "field_13",
      label: "主动脉瓣",
      type: "select",
      required: true,
      default: "不受累",
      options: [
        {
          label: "不受累"
        },
        {
          label: "关闭不全"
        },
        {
          label: "狭窄 "
        }
      ]
    }
  ]
};
